const express = require('express')
const router = express.Router()

router.get('/getHotList', (req, res) => {
  res.send({
    code: 200,
    success: true,
    message: '请求成功',
    data: {
      hotList: [
        {
          id: '001',
          count: 40690210,
          title: '我爱你 第一句是假的 第二句也是假的',
          imageUrl: '/playlist/image01.jpg'
        },
        {
          id: '002',
          count: 30690210,
          title: '国产HipHop从地下到地上',
          imageUrl: '/playlist/image02.jpg'
        },
        {
          id: '003',
          count: 20690210,
          title: '听首老歌 回味永不褪色的华语经典',
          imageUrl: '/playlist/image03.jpg'
        },
        {
          id: '004',
          count: 10690210,
          title: '中国传统音乐 从古老到现代',
          imageUrl: '/playlist/image04.jpg'
        },
        {
          id: '005',
          count: 50690210,
          title: '戒不掉 春娇与志明',
          imageUrl: '/playlist/image05.jpg'
        },
        {
          id: '006',
          count: 20690210,
          title: '听首老歌 回味永不褪色的华语经典',
          imageUrl: '/playlist/image03.jpg'
        },
        {
          id: '007',
          count: 30690210,
          title: '国产HipHop从地下到地上',
          imageUrl: '/playlist/image02.jpg'
        },
        {
          id: '008',
          count: 40690210,
          title: '我爱你 第一句是假的 第二句也是假的',
          imageUrl: '/playlist/image01.jpg'
        },
      ]
    }
  })
})

router.get('/getNewList', (req, res) => {
  res.send({
    code: 200,
    success: true,
    message: '请求成功',
    data: {
      newList: [
        {
          id: '001',
          name: 'TEENAGE RAM',
          author: '刘柏辛 Lexie',
          imageUrl: '/playlist/image06.jpg'
        },
        {
          id: '002',
          name: '乐透人生 GT',
          author: '马思唯',
          imageUrl: '/playlist/image07.jpg'
        },
        {
          id: '003',
          name: '在雨后醒来',
          author: '艾志恒 Asen',
          imageUrl: '/playlist/image08.jpg'
        },
        {
          id: '004',
          name: '开',
          author: '洪佩瑜',
          imageUrl: '/playlist/image09.jpg'
        },
        {
          id: '005',
          name: 'TEN: The Story',
          author: 'TWICE',
          imageUrl: '/playlist/image10.jpg'
        },
        {
          id: '006',
          name: 'Dream',
          author: 'Lee Seung-gi',
          imageUrl: '/playlist/image06.jpg'
        },
        {
          id: '007',
          name: 'Dream Dream',
          author: 'Lee Seung-gi Lee Seung-gi',
          imageUrl: '/playlist/image07.jpg'
        },
        {
          id: '008',
          name: 'Dream Dream Dream',
          author: 'Lee Seung-gi Lee Seung-gi Lee Seung-gi',
          imageUrl: '/playlist/image08.jpg'
        },
        {
          id: '009',
          name: 'Dream Dream Dream Dream',
          author: 'Lee Seung-gi Lee Seung-gi Lee Seung-gi Lee Seung-gi',
          imageUrl: '/playlist/image09.jpg'
        },
        {
          id: '010',
          name: 'Dream Dream Dream Dream Dream',
          author: 'Lee Seung-gi Lee Seung-gi Lee Seung-gi Lee Seung-gi Lee Seung-gi',
          imageUrl: '/playlist/image10.jpg'
        }
      ]
    }
  })
})

module.exports = router
